﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SdmxMl.Panels
{
    public partial class DlgEditTextField : Form
    {
        private string _edited;
        public string EditedValue
        {
            get { return _edited; }
            set 
            { 
                _edited = value;
                textBoxValue.Text = _edited;
            }
        }

        public DlgEditTextField(string label)
        {
            InitializeComponent();
            if (string.IsNullOrEmpty(label) == false)
                labelValue.Text = label;
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            _edited = textBoxValue.Text;
        }
    }
}
